<?php
use doumiaoduo\layer\LayerConfirmWidget;
use doumiaoduo\layer\LayerIframeWidget;

LayerConfirmWidget::widget();
LayerIframeWidget::widget();
?>
<div class="yx-praise-list-box yx-praise-box yx-radius2 zx-min-height">
    <!--/*添加按钮*/-->
    <?= $this->renderFile('@app/views/layouts/toolbar.php'); ?>
    <!--/*表*/-->
    <div class="docs-main zx-mg">
        <table id="tablesaw" class="tablesaw table yx-table1 yx-table3 table-striped with-check"
               data-tablesaw-mode="swipe" data-tablesaw-minimap>
            <thead>
            <tr class="yx-bgd2f6ec">
                <th><?= \Yii::t('zhtfrontend', 'ID'); ?></th>
                <th style="width:172px;"><?= \Yii::t('zhtfrontend', '配置名称'); ?></th>
                <th style="width:75px;"><?= \Yii::t('zhtfrontend', '类型名称'); ?></th>
                <th style="width:160px;"><?= \Yii::t('zhtfrontend', '标题'); ?></th>
                <th style="width:130px;"><?= \Yii::t('zhtfrontend', '发送方式'); ?></th>
                <th style="width:105px;"><?= \Yii::t('zhtfrontend', '极光推送模板'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '系统消息模板'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '微信消息模板'); ?></th>
                <th style="width:110px;"><?= \Yii::t('zhtfrontend', '邮件消息模板'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '短信消息模板'); ?></th>
                <th style="width:160px;"><?= \Yii::t('zhtfrontend', '创建时间'); ?></th>
                <th style="width:120px;"><?= \Yii::t('zhtfrontend', '操作'); ?></th>
            </tr>
            </thead>
            <?php if ($data): ?>
                <?php foreach ($data as $item): ?>
                    <tr data-id="<?= $item['id'] ?>">
                        <td><?= $item['id'] ?></td>
                        <td><?= $item['config_name'] ?></td>
                        <td><?= $item['type_id'] ?></td>
                        <td><?= $item['name'] ?></td>
                        <td><?= $item['send_way'] ?></td>
                        <td><?= $item['template_jpush'] ?></td>
                        <td><?= $item['template_sys'] ?></td>
                        <td><?= $item['template_wechat'] ?></td>
                        <td><?= $item['template_mail'] ?></td>
                        <td><?= $item['template_sms'] ?></td>
                        <td><?= $item['created_at'] ?></td>
                        <td><?= $item['frontend_operate'] ?></td>
                    </tr>
                <?php endforeach; ?>
            <?php endif; ?>
        </table>
    </div>
</div>












